import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 帖子标签
 */
@Entity('community_tag')
export class CommunityTagEntity extends BaseEntity {
  @Index()
  @Column({ comment: '名称', length: 50 })
  name: string;

  @Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
  status: number;

  @Column({ comment: '排序值', default: 0 })
  orderValue: number;
}
